const routers = [
    {
        path: '/assetCost',
        name: 'assetCost',
        redirect: {
            name: 'AssetCostList'
        },
        meta: {
            title: '资产成本',
            isTopLevel: true, // 是否为顶层页面
            // backName: 'index',
            isCanback: false, //控制是否可以显示返回
            // defaultMeau: '/AssetManagement'
        },
        children: [
            {
                path: '/assetCost/AssetCostList',
                name: 'AssetCostList',
                component: () =>
                    import(
                        '@/views/cost_assignment/asset_cost/AssetCostList.vue'
                        ),
                meta: {
                    title: '资产成本',
                    isTopLevel: true, // 是否为顶层页面
                    // backName: 'index',
                    isCanback: false, //控制是否可以显示返回
                    activeMenu: '/assetCost'
                }
            },
            {
                path: '/assetCost/AssetCostDetail',
                name: 'AssetCostDetail',
                component: () =>
                    import(
                        '@/views/cost_assignment/asset_cost/AssetDetail.vue'
                        ),
                meta: {
                    title: '查看详情',
                    isTopLevel: false, // 是否为顶层页面
                    backName: 'AssetCostList',
                    isCanback: true, //控制是否可以显示返回
                    activeMenu: '/assetCost',
                }
            },
        ]
    },
    {
        path: '/assetIncome',
        name: 'assetIncome',
        redirect: {
            name: 'IncomeList'
        },
        meta: {
            title: '资产入表',
            isTopLevel: true, // 是否为顶层页面
            // backName: 'index',
            isCanback: false, //控制是否可以显示返回
            // defaultMeau: '/AssetManagement'
        },
        children: [
            {
                path: '/assetIncome/IncomeList',
                name: 'IncomeList',
                component: () =>
                    import(
                        '@/views/cost_assignment/asset_Income/IncomeList.vue'
                        ),
                meta: {
                    title: '资产入表',
                    isTopLevel: true, // 是否为顶层页面
                    // backName: 'index',
                    isCanback: false, //控制是否可以显示返回
                    activeMenu: '/assetIncome'
                }
            },
            {
                path: '/assetCost/VoucherPage',
                name: 'VoucherPage',
                component: () =>
                    import(
                        '@/views/cost_assignment/asset_Income/VoucherPage.vue'
                        ),
                meta: {
                    title: '入表凭证',
                    isTopLevel: false, // 是否为顶层页面
                    backName: 'IncomeList',
                    isCanback: true, //控制是否可以显示返回
                    activeMenu: '/assetIncome',
                }
            },
        ]
    }

];

export default routers;
